from selenium.webdriver.common.by import By

class UserAddExpiredDate:

    #购买界面expired time问号定位
    other_note = (By.XPATH, '(//span[contains(@class,"anticon help___bvfOe")])')
    ECS_SQLSever_note = (By.XPATH, '(//span[contains(@class,"anticon help___bvfOe")])[3]')
    MySQL_note = (By.XPATH, '(//span[contains(@class,"anticon help___bvfOe")])[2]')

    # 购买页面注释定位
    note_text = (By.XPATH, '(//div[contains(@class,"antd4-tooltip-inner")])')

    #购买ecs默认过期时间
    ecs_expired_time= (By.XPATH, '(//span[contains(@class,"warningText___2YzuH")])[1]')
    #列表展示ecs过期时间
    ecs_expired_time_list = (By.XPATH, '(//div[contains(@class,"expireTimeContainer___3F-nr")])')

    #instance type
    instance_type = (By.XPATH, '(//div[contains(@class,"radio-item___2FVfk")])[3]')

    image1 = (By.XPATH, '(//div[contains(@class,"antd4-select-selector")])[5]')
    image1_input = (By.XPATH, '(//div[contains(@class,"antd4-select-item-option-content")])[1]')

    deployment_set = (By.XPATH, '(//div[contains(@class,"antd4-select-selector")])[7]')
    deployment_set_input = (By.XPATH,"//div[@id='rc_select_6_list']/../div[2]//div[@class='antd4-select-item-option-content']")

    modify_expired_time = (By.XPATH, '(//span[contains(@class,"anticon anticon-edit editIcon___3kg65 pointer___33hgN")])[1]')
    input_new_expired_time = (By.ID, 'expireTime')
    ok_button = (By.XPATH, '//div[text() = "OK"]')

    #购买界面选择过期时间
    expired_time_input = (By.ID, 'creForm_expireTime')

    #日历默认显示
    date_normal = (By.XPATH, '(//span[contains(@class,"warningText___2YzuH")])[1]')
    #被高亮的日期
    date_select = (By.XPATH, '(//td[contains(@class,"antd4-picker-cell antd4-picker-cell-in-view antd4-picker-cell-selected")])[1]')


